import request from '@/utils/request'

// 查询组织和用户关联列表
export function listMedium_organization_user(query) {
  return request({
    url: '/app/medium_organization_user/list',
    method: 'get',
    params: query
  })
}

// 查询组织和用户关联详细
export function getMedium_organization_user(id) {
  return request({
    url: '/app/medium_organization_user/' + id,
    method: 'get'
  })
}

// 新增组织和用户关联
export function addMedium_organization_user(data) {
  return request({
    url: '/app/medium_organization_user',
    method: 'post',
    data: data
  })
}

// 修改组织和用户关联
export function updateMedium_organization_user(data) {
  return request({
    url: '/app/medium_organization_user',
    method: 'put',
    data: data
  })
}

// 删除组织和用户关联
export function delMedium_organization_user(id) {
  return request({
    url: '/app/medium_organization_user/' + id,
    method: 'delete'
  })
}
